<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 2. 输入 a、b、c、d，对应的输出春、夏、秋、冬
        let str = prompt('请输入需要查询的季节abcd')
        switch (str) {
            case 'a':
                alert('春')
                break;
            case 'b':
                alert('夏')
                break;
            case 'c':
                alert('秋')
                break;
            case 'd':
                alert('冬')
                break;
            default:
                break;
        }
    </script>

</body>

</html>